package com.xishu.entity.order;

import com.xishu.entity.AbstractEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;

/**
 * 订单与服务员的映射
 */
@Entity(name = "order_waiter_mapping")
public class OrderWaiterMapping extends AbstractEntity {
    @ApiModelProperty(value = "分店的ID")
    private Long shopId;

    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    @ApiModelProperty(value = "服务员的ID")
    private Long waiterId;

    @ApiModelProperty(value = "服务员的姓名")
    private String waiterName;

    @ApiModelProperty(value = "金额")
    private Double cash;

    @ApiModelProperty(value = "父订单的ID,如果本身是父订单，那么订单号也是父订单号")
    private Long parentOrderId;

    public Long getParentOrderId() {
        return parentOrderId;
    }

    public void setParentOrderId(Long parentOrderId) {
        this.parentOrderId = parentOrderId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getWaiterId() {
        return waiterId;
    }

    public void setWaiterId(Long waiterId) {
        this.waiterId = waiterId;
    }

    public String getWaiterName() {
        return waiterName;
    }

    public void setWaiterName(String waiterName) {
        this.waiterName = waiterName;
    }

    public Double getCash() {
        return cash;
    }

    public void setCash(Double cash) {
        this.cash = cash;
    }
}
